/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const marketingRouter = {
  path: '/marketing',
  component: Layout,
  redirect: 'noRedirect',
  name: '营销',
  hidden:true,
  meta: {
    title: '营销', icon: 'guide'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/marketing/main'),
      name: '概览',
      hidden:true,
      meta: { title: '概览', icon: 'guide' }
    },
    {
      path: 'channel',
      component: () => import('@/views/marketing/channel/channel'),
      name: '渠道',
      hidden:true,
      meta: { title: '渠道', icon: 'guide' }
    },

    {
      path: 'channel-add',
      component: () => import('@/views/marketing/channel/channel-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    
    {
      path: 'channel-detail',
      component: () => import('@/views/marketing/channel/channel-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'account',
      component: () => import('@/views/marketing/channelAccount/account'),
      name: '渠道',
      hidden:true,
      meta: { title: '渠道', icon: 'guide' }
    },

    {
      path: 'account-add',
      component: () => import('@/views/marketing/channelAccount/account-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    
    {
      path: 'account-detail',
      component: () => import('@/views/marketing/channelAccount/account-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'document',
      component: () => import('@/views/marketing/document/document'),
      name: '文档',
      hidden:true,
      meta: { title: '文档', icon: 'guide' }
    },
    {
      path: 'document-add',
      component: () => import('@/views/marketing/document/document-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'document-detail',
      component: () => import('@/views/marketing/document/document-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'groupbuy',
      component: () => import('@/views/marketing/groupbuy/groupbuy'),
      name: '团购',
      hidden:true,
      meta: { title: '团购', icon: 'guide' }
    },
    {
      path: 'groupbuy-add',
      component: () => import('@/views/marketing/groupbuy/groupbuy-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'groupbuy-detail',
      component: () => import('@/views/marketing/groupbuy/groupbuy-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'flashsale',
      component: () => import('@/views/marketing/flashsale/flashsale'),
      name: '秒杀',
      hidden:true,
      meta: { title: '秒杀', icon: 'guide' }
    },
    {
      path: 'flashsale-add',
      component: () => import('@/views/marketing/flashsale/flashsale-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'flashsale-detail',
      component: () => import('@/views/marketing/flashsale/flashsale-add'),
      name: '行政区域编辑',
      hidden:true,
      meta: { title: '行政区域编辑', icon: 'guide' }
    },
    {
      path: 'coupon',
      component: () => import('@/views/marketing/coupon/coupon'),
      name: '优惠卷',
      hidden:true,
      meta: { title: '优惠卷', icon: 'guide' }
    },
    {
      path: 'coupon-add',
      component: () => import('@/views/marketing/coupon/coupon-add'),
      name: '优惠卷编辑',
      hidden:true,
      meta: { title: '优惠卷编辑', icon: 'guide' }
    },
    {
      path: 'coupon-detail',
      component: () => import('@/views/marketing/coupon/coupon-add'),
      name: '优惠卷编辑',
      hidden:true,
      meta: { title: '优惠卷编辑', icon: 'guide' }
    }
  ]
}

export default marketingRouter
